
<div class="app-container with-tabbar" ng-controller="VideoController">

    
    <div class="navbar fixed-top">
        <div class="navbar-left hide-weixin" ng-click="goBack()">
            <img class="button-icon" src="image/nav-left.png"/>
            <div class="button-text">返回</div>
        </div>
        <div class="navbar-title">
            土猪直播
        </div>
    </div>

    <div class="app-content">


        <div class="homevideo">
            <input id="live-url" type="hidden" ng-value="live_url">
            <div class="prism-player" id="player-con"></div>
        </div>
        <script>
            setTimeout(function(){
                var live_url = $('#live-url').val();
                if (live_url) {console.log(live_url);
                    var player = new Aliplayer({
                            "id": "player-con",
                            "source": live_url,
                            "width": "100%",
                            "height": "500px",
                            "autoplay": true,
                            "isLive": true,
                            "rePlay": false,
                            "playsinline": true,
                            "preload": true,
                            "controlBarVisibility": "hover",
                            "useH5Prism": true
                        }, function (player) {
                            console.log("播放器创建了。");
                        }
                    );
                }
            }, 500);
        </script>
    </div>
    
</div>
